//部门管理模块的api封装 - 异步交互
import request from '@/utils/request'
// import { id } from 'element-plus/es/locales.mjs';

//查询全部部门数据
export const queryAllempApi = (name,gender,begin,end,page,pageSize)=>request.get(`emps?name=${name}&gender=${gender}&begin=${begin}&end=${end}&page=${page}&pageSize=${pageSize}`);
export const addempApi = (data) => request.post('/emps',data)

export const queryempByIdApi = (id) => request.get(`/emps/${id}`)

export const updatempApi =(emp) =>request.put('/emps', emp);

export const deleteempApi = (ids) =>request.delete(`/emps?ids=${ids}`);

